import type { IQuery } from './../indexTypes';
import { CooperationTypeEnum, AuditStatusEnum, ApplyTypeEnum, CooperationProjectTypeEnum } from '@/enums/cooperationEnum';
export interface QuotaData {
  quota: number;
  product: string;
  usable: number;
  cooperated: number;
  endtime: string;
  buyText: string;
  explain?: string;
  qrCode: string
}
export interface GetMarketList extends IQuery {
  orgName?: string; // 机构名称
}

export interface AssociationCard {
  tenantId: number;
  orgName?: string;
  logo?: string;
  industry: string[];
  details?: string;
  cooperated?: number; // 已合作数
  pronum?: number; // 资源数
  toOrgName?: string; // 合作协会名称
  id?: number; // 详情ID
  cooperationType?: CooperationTypeEnum;
  projectType?: CooperationProjectTypeEnum;
  projectName?: string;
  apStatus?: AuditStatusEnum;
  coope?: boolean;
  createTime?: string;
}

export interface ResourcesList {
  name: string;
  type: number;
  checked?: boolean;
}

export interface PliceConfirm {
  // 资源类型
  projectType?: CooperationProjectTypeEnum;
  // 资源名称
  projectName?: string;
  // 联系秘书处电话
  contactsPhone?: string;
  // 自己的比例
  discount: number;
  // 联系方式解锁价
  priceContact: number;
  // 本组织-联系方式 佣金
  priceContactCompute: number;
  // 秘书处解锁价
  pricePeople: number;
  // 本组织-秘书处佣金
  pricePeopleCompute: number;
}

export interface PliceSet extends PliceConfirm {
  // 对方比例
  discount2: number;
  // 联系方式减去服务费后总价
  priceContactSum: number;
  // 联系方式服务费
  priceContactSerivce: number;
  // 对方组织-联系方式 佣金
  priceContactComputeTo: number;
  // 秘书处减去服务费后总价
  pricePeopleSum: number;
  // 秘书处服务费
  pricePeopleSerivce: number;
  // 对方组织-秘书处佣金
  pricePeopleComputeTo: number;
}

export interface AddApplyData extends PliceConfirm {
  tenantId: number;
  cooperationType: CooperationTypeEnum;
}

export interface DetailsInfo extends PliceSet {
  id: number;
  cooperationType: CooperationTypeEnum;
  applyType: ApplyTypeEnum;
  apOrgLogo: string
  apOrgName: string
  apStatus: AuditStatusEnum;
  logo: string;
  orgName: string;
  createTime: string;
  apTime?: string;
  colseTime?: string;
  createUser?: string
  toTenantId: number
  projectType: CooperationProjectTypeEnum
}


export interface ISaasIntentionApply{
  /** 联系人姓名*/
  name:string,
  /**联系人手机号 */
  phone:string,
  /**所属组织名称 */
  orgName:string,
  /**加密id */
  inviteAppUserInfoId:string
}